package com.example.park

import android.graphics.BitmapFactory
import android.os.Bundle
import androidx.activity.enableEdgeToEdge
import androidx.appcompat.app.AppCompatActivity
import androidx.core.view.ViewCompat
import androidx.core.view.WindowInsetsCompat
import com.alibaba.android.arouter.facade.annotation.Route
import com.example.base.mvi.BaseViewActivity
import com.example.park.databinding.ActivityParkVrBinding
import com.google.vr.sdk.widgets.pano.VrPanoramaView

@Route(path = "/park/ParkVrActivity")
class ParkVrActivity : BaseViewActivity<ActivityParkVrBinding>() {
    override fun getLayout(): Int = R.layout.activity_park_vr

    override fun initView() {
        //添加设置
        val options = VrPanoramaView.Options()
        options.inputType =VrPanoramaView.Options.TYPE_MONO//水平滑动查看
        binding.parkVr.loadImageFromBitmap(BitmapFactory.decodeResource(resources,
            com.example.base.R.drawable.ic_vr),options)

    }

}